package com.mall.client.mallGroupBuy;

import java.util.List;

import com.mall.pojo.MallTuanCode;
import com.mall.query.Page;

public interface MallTuanCodeService {
	public List<MallTuanCode> getMallTuanCodeList(Long userId, Integer status, Page page);

	public List<MallTuanCode> getMallTuanCodeListByUserId(Long mallId, Long userId, Integer status);

	public List<MallTuanCode> getMallTuanCodeListByUserIdAndCode(Long mallId, Long userId, String code, Integer status);

	public Long insertMallTuanCodeList(List<MallTuanCode> mallTuanCodeList);

	public Integer updateMallTuanCodeByCodeAndUserIdAndMallId(Long id, MallTuanCode mallTuanCode, Integer updateStatus);

	public List<MallTuanCode> getMallTuanCodeListByTradeAndUserId(Long id, Long orderId);

	public int getMallTuanCodeUseCount(Long id, Long orderId);

}
